/**
 * Copyright (c) 2008, Keisuke Inoue, Syracuse Unviersity
 * All rights reserved.
 *
 */
package edu.syr.iis.web.controller;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import edu.syr.iis.web.model.AssignmentManager;

/**
 * @author kinoue
 *
 */
public class ViewStatisticsController extends AbstractController
{
    AssignmentManager assignmentManager;
    
    
    /* (non-Javadoc)
     * @see org.springframework.web.servlet.mvc.AbstractController#handleRequestInternal(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest arg0,
	    HttpServletResponse arg1) throws Exception
    {
	
	// TODO Auto-generated method stub
	ArrayList<String> matrix = new ArrayList<String>();
	
	for (int i = 0; i < 10; i++)
	    matrix.add("Row " + i);
    		
	return new ModelAndView("viewstatistics", "matrix", matrix);
    }


    public void setAssignmentManager(AssignmentManager assignmentManager)
    {
        this.assignmentManager = assignmentManager;
    }

    
}
